package com.ht.medicaltreatment.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ht.medicaltreatment.R
import com.ht.medicaltreatment.bean.CentrifugeOrderOverTimeDetailBean

class CentrifugeRecordOverTimeDetailAdapter : BaseQuickAdapter<CentrifugeOrderOverTimeDetailBean,BaseViewHolder>(R.layout.item_record_centrifuge_layout){
    override fun convert(holder: BaseViewHolder, item: CentrifugeOrderOverTimeDetailBean) {
        holder.setText(R.id.tvCode,"${getItemPosition(item)+1}")
        holder.setText(R.id.tvName,item.name)
        holder.setText(R.id.tvProjectName,item.project.protocolNumber)
    }

}
